<div>
	<el-form class="form-env" ref="form" label-width="80px">
		<el-form-item label="开启调试">
			<el-switch v-model="isDebugger" @change="isDebuggerChange"></el-switch>
		</el-form-item>
		<template v-if="isDebugger">
			<el-form-item label="调试环境">
				<el-select name="" v-model="selectedEnv">
					<el-option v-for="item in envList" :key="item.value" :value="item.value" :label="item.label">
					</el-option>
				</el-select>
			</el-form-item>
			<el-form-item label="app类型">
				<el-select name="" v-model="selectedApp" @change="appChange">
					<el-option v-for="item in appList" :key="item.appUA" :value="item.appUA" :label="item.appName">
					</el-option>
				</el-select>
			</el-form-item>
			<el-form-item label="app版本号">
				<el-select name="" v-model="selectedVersion">
					<el-option value=""> 无 </el-option>
					<template v-if="selectedApp==='tops-TopBroker'">
						<el-option v-for="item in brokerVersionList" :key="item" :value="item"></el-option>
					</template>
					<template v-else-if="selectedApp==='tops-TopKber'">
						<el-option v-for="item in kberVersionList" :key="item" :value="item"></el-option>
					</template>
				</el-select>
			</el-form-item>
			<el-form-item size="large">
				<el-button type="primary" @click="onSubmit">确定</el-button>
				<el-button @click="onReset">重置</el-button>
			</el-form-item>
		</template>
	</el-form>
</div>
